<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>列表页</title>
    <link rel="stylesheet" href="{{__PUBLIC__}}/Home/css/list.css" />
</head>
<body>
<div id="box-menu">
    <div class="menu">
        <ul>
            <li><a href="index.php">首页</a>
            </li>
            {{foreach from="$topCate" value="$v"}}
                <li>
                    <a href="{{U('index',['cid'=>$v['cid']])}}" {{if value="$_GET['cid'] eq $v['cid']"}}class="hover"{{endif}} >{{$v['cname']}}</a>
                </li>
            {{endforeach}}

        </ul>
    </div>
</div>
<div id="attr-box">
    <div class="attr">
        <ul>
            {{foreach from="$finalAttr" key="$k" value="$v"}}
                <?php
                    $temp = $param;
                    $temp[$k] = 0;
                ?>
                <li class="attr-border">
                    <h2>{{$v['name']}}：</h2>
                    <ul class="attr-content">
                        <li>
                            <a href="{{U('index',['cid'=>$_GET['cid'],'param'=>implode('_',$temp)])}}" {{if value="$param[$k] eq 0"}}class="hover"{{endif}}>不限</a>
                        </li>
                        {{foreach from="$v['value']" value="$value"}}
                            <?php
                                $temp[$k] = $value['gtid'];
                            ?>
                            <li>
                                <a href="{{U('index',['cid'=>$_GET['cid'],'param'=>implode('_',$temp)])}}" {{if value="$value['gtid'] eq $param[$k]"}}class="hover"{{endif}}  >{{$value['gtvalue']}}</a>
                            </li>
                        {{endforeach}}
                    </ul>
                </li>
            {{endforeach}}
        </ul>
    </div>
</div>
<div id="content">
    <ul>
        <li>商品</li>
        <li>商品</li>
        <li>商品</li>
        <li>商品</li>
    </ul>
</div>

</body>

</html>
